package com.example.campustalent.bean

import android.os.Parcelable
import com.litesuits.orm.db.annotation.Column
import com.litesuits.orm.db.annotation.PrimaryKey
import com.litesuits.orm.db.annotation.Table
import com.litesuits.orm.db.enums.AssignType
import kotlinx.android.parcel.Parcelize

/**
 *@author: wangtianxiong
 *@time: 2022/3/11
 *@describe:
 *
 */
@Parcelize
@Table("user")
class UserInfoBean(): Parcelable {
    // 指定自增，每个对象需要有一个主键
    @PrimaryKey(AssignType.AUTO_INCREMENT)
    var id: Int = 0

    @Column("name")
    var name: String? = null

    @Column("password")
    var password: String? = null

    @Column("isFirst")
    var isFirst: Boolean = false

    @Column("schoolType")
    var schoolType: String? = null

    @Column("tabContentSF")
    var tabContentSF: String? = null

    @Column("tabContentLG")
    var tabContentLG: String? = null

    @Column("tabContentYX")
    var tabContentYX: String? = null


    override fun toString(): String {
        return "UserInfoBean(id=$id, name=$name, password=$password, isFirst=$isFirst, schoolType=$schoolType, tabContentSF=$tabContentSF, tabContentLG=$tabContentLG, tabContentYX=$tabContentYX)"
    }


}